package cn.ticket.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.ticket.model.Staff;

public interface StaffService {
    int deleteByPrimaryKey(Integer id);

    int insert(Staff record);

    int insertSelective(Staff record);

    Staff selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Staff record);

    int updateByPrimaryKey(Staff record);
    
    List<Staff> getAll();
    
    List<Staff> getByCount(int start,int count);
    
    List<Staff> getByDepartment(Integer departmentId);
    
    Staff getByPhoneAndPassword(String phone,String password);
    
    Staff getByNumberAndPassword(String number,String password);
    
    Staff getByIdAndPassword(Integer id,String password);
    
    List<Map<String, Object>>  getByKeywords(String keywords);
    
    List<Map<String, Object>> getStaffInfoByKeyWords(String keywords);
    
    List<Map<String, Object>> getStaffInfoByCount(int start,int count);
    
    List<Map<String, Object>> getStaffInfoByDepartment(Integer departmentId);
    
    List<Map<String, Object>> getAuditingStaffInfoByDepartmentId(Integer departmentId);
    
    List<Map<String, Object>> getStaffInfoByStaffId(Integer staffId);
    
    Staff validateStaff(String number,String password);
    
    int getStaffCount();

	int getStaffCountByDepartment(Integer departmentId);

	List<Map<String, Object>> getStaffInfoByDepartmentAndCount(Integer departmentId,int start,int count);
}
